#!/usr/bin/env python
#coding=utf-8
#File: daemon.py

import os
import time

pid = os.fork()
if pid:
    os._exit(0) #kill original
    
print "daemon started"
time.sleep(10)
print "deamon terminated"
